//protected:在类内部和子类中可以访问
class Person {
  protected name:string = 'occ'
}

class Students extends Person {
  getName(){
    return this.name
  }
}

// const p = new Person()
// console.log(p.name);

const s = new Students()
console.log(s.getName());



export{}